import service from '@/core/net/request'

export function getNoticeList(page) {
  return service.get(`/api/admin/notice/${page}`)
}

export function createNotice(data) {
  return service.post('/api/admin/notice', data)
}

export function updateNotice(id, data) {
  return service.post('/api/admin/notice/' + id, data)
}

export function deleteNotice(id) {
  return service.post(`/api/admin/notice/${id}/delete`)
}
